#include <iostream>
#include <set>

using namespace std;
void printSet(const multiset<int> &s)
{
	multiset<int>::iterator index;
	for (index = s.begin(); index != s.end();
		++ index)
	{
		cout << *index << endl;
	}
	cout << endl;
}

int main()
{
	multiset <int> setInit;
	setInit.insert(100);
	setInit.insert(100);
	setInit.insert(323);
	setInit.insert(342);
	setInit.insert(12);
	multiset<int>::iterator index = setInit.find(323);
	if(index != setInit.end())
		cout << "multiset find ... " << *index << endl;
	printSet(setInit);
	return 0;
}